from pydantic_settings import BaseSettings

class Settings(BaseSettings):
    # 数据库配置
    DATABASE_USER: str = "root"
    DATABASE_PASSWORD: str = "password"
    DATABASE_HOST: str = "localhost"
    DATABASE_NAME: str = "avatarchat"
    
    # JWT配置
    SECRET_KEY: str = "SECRET_KEY"
    ALGORITHM: str = "HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24  # 24小时
    
    # LLM配置
    OPENAI_API_KEY: str = "sk-None-S32HRfQqO3fEv40hNwmBT3BlbkFJ0r4s1iTIwZMF2i3sbtiv"
    OPENAI_BASE_URL: str = "https://api.openai.com/v1"
    OPENAI_MODEL: str = "gpt-4o-mini"

    DASHSCOPE_API_KEY: str = "sk-c44402d7a12c41299bb716af8d7e8bac"
    DASHSCOPE_BASE_URL: str = "https://dashscope.aliyuncs.com/compatible-mode/v1"
    DASHSCOPE_MODEL: str = "qwen-plus"

    LLM_API_KEY: str = OPENAI_API_KEY
    LLM_BASE_URL: str = OPENAI_BASE_URL
    LLM_MODEL: str = OPENAI_MODEL
    
    class Config:
        env_file = ".env"

settings = Settings() 